<?php

/**
 * [通过帖子id获取帖子标签]
 * @param  [type] $tid [description]
 * @return [type]      [description]
 */
function get_tagname($tid){
    $tagid=thread__read($tid)['tagids'];
    if(empty($tagid))   return '';

    return tag_read($tagid)['name'];
}

/**
 * [ 生成tag]
 * @param  [type] $fid   [description]
 * @param  [type] $tagid [description]
 * @return [type]        [description]
 */
function create_tag_url($fid,$tagid){

  return '<font style="margin-left:10px;font-color:blue;font-size:12px"><a href="/category-'.$fid.'-1-'.$tagid.'.htm" >['.tag_read($tagid)['name'].']</a></font>';
}


 ?>
